package com.springboot.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.entity.BlogUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.returndata.dto.blog.BlogUserPageDto;
import com.springboot.returndata.vo.blog.BlogUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 博客用户 Mapper 接口
 * </p>
 *
 * @author zyj
 * @since 2023-05-04
 */
@Mapper
public interface BlogUserDao extends BaseMapper<BlogUserEntity> {

    BlogUserEntity selectByNameOrEamil(@Param("name") String name,@Param("email") String email);

    BlogUserEntity selectByEamil(String email);

    BlogUserEntity selectById(int id);

    Page<BlogUserVo> pageBlogUser(Page<BlogUserVo> page, @Param("blogUserPageDto") BlogUserPageDto blogUserPageDto);
}
